package com.sh.data.engine.application.model.request.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author : changkong
 * @date : 2022/3/15
 */
@Data
@Builder
@Schema(title = "提交建表sql建表")
@NoArgsConstructor
@AllArgsConstructor
public class SaveTargetTableRequest {

    @Schema(description = "sql", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    private String sql;

    @Schema(description = "数据密级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数据密级必填")
    private Long dataSecretId;
}
